From: Colin Walters Date: Sun, 24 Jul 2016 19:45:02 +0000 (-0400) Subject: lib: Fix leak in bootconfig parser X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~49^2~53 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a38f2f41b2e7fa357227178f936f6e7475d54f80;p=ostree.git lib: Fix leak in bootconfig parser Pretty simple. Closes: #410 Approved by: giuseppe --- diff --git a/src/libostree/ostree-bootconfig-parser.c b/src/libostree/ostree-bootconfig-parser.c index 661e759d..6ca4df1d 100644 --- a/src/libostree/ostree-bootconfig-parser.c +++ b/src/libostree/ostree-bootconfig-parser.c @@ -244,7 +244,7 @@ static void ostree_bootconfig_parser_init (OstreeBootconfigParser *self) { self->options = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); - self->lines = g_ptr_array_new (); + self->lines = g_ptr_array_new_with_free_func (g_variant_unref); } void